import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Storage from '@/components/Storage'
import Login from '@/components/Login'
import Show from '@/components/Show'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/hello',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/storage',
      name: 'Storage',
      component: Storage
    },
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/show',
      name: 'Show',
      component: Show,
      children:[
            {
              path: '/show',
                component: () => import('../components/view/Show1.vue'),
                meta: { title: '首页' }
            },
            {
              path: '/excel',
                component: () => import('../components/view/Excel1.vue'),
                meta: { title: 'excel' }
            },
            {
              path: '/indoor',
                component: () => import('../components/view/Indoor.vue'),
                meta: { title: '进入' },
                children:[
                  {
                    path: '/indoor/0',
                    component: () => import('../components/content/0.vue'),
                      meta: { title: '0' }
                  },
                  {
                    path: '/indoor/1',
                    component: () => import('../components/content/1.vue'),
                      meta: { title: '1' }
                  },
              
                ]
            }
      ]
    },
    
  ]
})
